package com.ashley.queue;

/**
 * @Author ashley
 * @Date 2019/9/11 10:32
 */
public class LinkedListQueueTest {
    public static void main(String[] args) {
        LinkedListQueue queue = new LinkedListQueue();

        System.out.println(queue.isEmpty());//true
        queue.insert("A");
        queue.insert("B");
        queue.insert("C");
        System.out.println(queue.isEmpty());//false
        System.out.println(queue.size);//3

        queue.insert("D");
        queue.insert("E");

        System.out.println(queue.size);//5
        System.out.println(queue.isFull());//true

        System.out.println(queue.remove());//A
        System.out.println(queue.remove());//B


    }
}
